Class ZipMainPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----ZipMainPanel
- public class ZipMainPanel
- extends JPanel
This class construct the main frame of the visual interface.
It gives the link between the graphic interface, and the file
Archive.
- Version:
- 1.0
- Author:
- Frank Moisant - Patrick Titiano
- See Also:
- ZipToolsBar, Zip, AllActionListener, ZipTable
-
allActionListener
-
-
data
-
-
name
-
-
nbFiles
-
-
scrollPane
-
-
toolsBar
-
-
zipAccess
-
-
zipTable
-
-
ZipMainPanel(AllActionListener, Zip)
- Constructor of the class
-
changeVectorOfDataVector(Vector)
- This Method change the content of the table attached at zipTable
and activate the refresh of the zipTable, and the status bar
-
enabledToolsAction(boolean)
- This method is use to activate an desactivate the Edition and Action buttons
-
getSelectedFiles()
- This methods return the selected files in the zipTable
-
selectAll()
- This method select all rows in the zipTable
-
selectNone()
- This method deselect rows in the zipTable
zipTable
private ZipTable zipTable
data
private Vector data
name
private Vector name
scrollPane
private JScrollPane scrollPane
toolsBar
private ZipToolsBar toolsBar
zipAccess
private Zip zipAccess
allActionListener
private AllActionListener allActionListener
nbFiles
private JLabel nbFiles
ZipMainPanel
public ZipMainPanel(AllActionListener allActionListener,
Zip zipAccess)
- Constructor of the class
- Parameters:
- allActionListener - accessor to the general action dispatcher
- zipAccess - accessor to the zipArchive, use for the popup menu
enabledToolsAction
public void enabledToolsAction(boolean flag)
- This method is use to activate an desactivate the Edition and Action buttons
- Parameters:
- flag - true if you want to enable it
getSelectedFiles
public Vector getSelectedFiles()
- This methods return the selected files in the zipTable
- Returns:
- a Vector of rows, the rows are Vector
changeVectorOfDataVector
public void changeVectorOfDataVector(Vector newVector)
- This Method change the content of the table attached at zipTable
and activate the refresh of the zipTable, and the status bar
- Parameters:
- newVector - the new vector
selectAll
public void selectAll()
- This method select all rows in the zipTable
selectNone
public void selectNone()
- This method deselect rows in the zipTable